//
//  MSViewModel.h
//  OrderingMerchantsSide
//
//  Created by iOS on 2018/9/20.
//  Copyright © 2018年 mls. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum : NSUInteger {
    MSHeaderRefresh_hasMoreData = 1,
    MSHeaderRefresh_noMoreData,
    MSFooterRefresh_hasMoreData,
    MSFooterRefresh_noMoreData,
    MSRefreshError,
    MSRefreshUI,
} MSRefreshDataStatus;

NS_ASSUME_NONNULL_BEGIN

@protocol MSViewModelProtocol <NSObject>

@optional

- (instancetype)initWithModel:(id)model;
/** 初始化 */
- (void)ms_initialize;

@end

@interface MSViewModel : NSObject <MSViewModelProtocol>

@property (nonatomic, strong) RACSubject *refreshUISubject;

- (void)ms_initialize;

@end

NS_ASSUME_NONNULL_END
